package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.CarView
import tmproject.hlhj.fhp.cartrans.javaBean.CarInfoBean
import tmproject.hlhj.fhp.cartrans.modules.CarModule

class CarPresneter :BasePresenter<CarModule,CarView>(), CarModule.CarInfoResp {
    override fun createModule() {
        module=CarModule()
        module?.listener=this
    }

    fun getCarInfo(c:Context,id:Int){
        module?.getCarinfo(c,id)
    }
    override fun setCarInfo(carInfoBean: CarInfoBean) {
        view?.setCarInfo(carInfoBean)
    }
}